#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/10/13 10:56
@Author:  ThinHeader
@File: urls.py
@Software: PyCharm
"""
from django.conf.urls import url

from order.views import OrderKanjiaCreateView, WxPayForKanjiaView, OrderGroupShoppingCreateView, \
    WxPayForGroupShoppingView, OrderProductCreateView, WxPayForProductView, OrderKillProductCreateView, \
    WxPayForKillProductView

urlpatterns = [
    # 创建商品订单
    url(r'api/product/create$', OrderProductCreateView.as_view(), name='product_create_api'),
    # 创建秒杀订单
    url(r'api/kill/create$', OrderKillProductCreateView.as_view(), name='kill_create_api'),
    # 创建砍价订单
    url(r'api/kanjia/create$', OrderKanjiaCreateView.as_view(), name='kanjia_create_api'),
    # 创建团购订单
    url(r'api/groupshopping/create$', OrderGroupShoppingCreateView.as_view(), name='groupshopping_create_api'),

    # 订单支付接口
    # 商品支付
    url(r'^pay/product$', WxPayForProductView.as_view(), name='pay_product'),
    # 秒杀支付
    url(r'^pay/kill$', WxPayForKillProductView.as_view(), name='pay_kill'),
    # 砍价支付
    url(r'^pay/kanjia$', WxPayForKanjiaView.as_view(), name='pay_kanjia'),
    # 团购支付
    url(r'^pay/groupshopping$', WxPayForGroupShoppingView.as_view(), name='pay_groupshopping'),
]
